import request from '@/utils/request'
// -------- 项目类型 --------

let BASE_ADDRESS = 'work/projectCondition'


// 分页查询  /work/projectCondition/list
export const getProjectConditionListApi = (params) =>{
    return request({
        url: `${BASE_ADDRESS}/list`,
        method: "get",
        params
    })
}

//删除项目条件  /work/projectCondition/remove/{id}
export const removeProjectConditionApi = (id) =>{
    return request({
        url: `${BASE_ADDRESS}/remove/${id}`,
        method: 'delete',
    })
}

//添加项目条件 /work/projectCondition/add
export const addProjectConditionApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/add`,
        method: "post",
        data
    })
}

//修改项目条件 /work/projectCondition/edit
export const editProjectConditionApi = (data) =>{
    return request({
        url: `${BASE_ADDRESS}/edit`,
        method: "put",
        data
    })
}
